package com.zengqingfa.examples.mybatisplus.util;

import com.alibaba.ttl.TransmittableThreadLocal;

/**
 * @author zengqingfa
 * @className ThreadContext
 * @description
 * @create 2021/10/17 19:04
 */
public class ThreadContext {

    static TransmittableThreadLocal<String> context = new TransmittableThreadLocal<>();

    public static TransmittableThreadLocal<String> getContext() {
        return context;
    }

    public static void setContext(TransmittableThreadLocal<String> context) {
        ThreadContext.context = context;
    }
}